home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 2
/
United Public Domain Gold 2.iso
/
utilities
/
pu723.dms
/
pu723.adf
/
PhotoCDAGA
/
PhotoCDAGA.doc
< prev
next >
Wrap
Text File
|
1994-11-20
|
10KB
|
312 lines
PhotoCDAGA 1.0 by Günther Röhrich
*********************************
PhotoCDAGA is a viewer/converter for pictures in the PhotoCD format. It is
based on the sources of the program "hpcdtoppm" written by Hadmut Danisch.
For this reason you have to observe his copyright notice:
hpcdtoppm (Hadmut's pcdtoppm) v0.6
Copyright (c) 1992, 1993, 1994 by Hadmut Danisch (danisch@ira.uka.de).
Permission to use and distribute this software and its
documentation for noncommercial use and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation. It is not allowed to sell this software in
any way. This software is not public domain.
All these terms do also apply to PhotoCDAGA. If you have more questions about
legal issues then contact me or Hadmut Danisch. (you can find his address at
the end of this doc)
Advantages of PhotoCDAGA:
- it does not cost you anything
- complete source code is included, it can be compiled with all C compilers on
the Amiga
- high speed (it is compiled with gcc 2.6.1, a part of it is written directly
in assembly language)
- high picture quality gained by using the overskip mode and map-files
(probably better than with all other programs)
- saving in ppm-format is possible to allow conversion into other picture
formats
(e.g. to IFF-ILBM with ppm2AGA or to JPEG with cjpeg)
In the NETPBM package you can find converters for almost all formats.
(Aminet: gfx/pbm)
Disadvantages: (sorry)
- needs lot of memory
- not very comfortable (shell command)
- overview is not (yet) possible
- resolutions higher than Base (512x768) are not supported
(you have to use hpcdtoppm, the original, in this case)
Many thanks to Hadmut Danisch for writing hpcdtoppm and releasing the source
code to the public. Without his program PhotoCDAGA would not exist.
Also many thanks to all who have contributed to the GNU C compiler.
Now I should start with the real documentation:
*******************************************************************************
* ATTENTION: You have to increase your stack size to at least 10000 before *
* starting PhotoCDAGA *
*******************************************************************************
System requirements:
An Amiga with lot of (virtual) memory and:
- AGA chipset
- 68020 or higher processor
- OS 3.0 or higher
- ixemul.library V40.xx or higher in the LIBS: directory
- a CD-ROM drive capable of reading Photo-CD's
As input to the program you need some pictures in the PhotoCD format. They have
the ending .PCD and can be found in the directory PHOTO_CD/IMAGES on Photo-CD's.
Installation
************
Copy the programs from the bin directory anywhere into your shell's search
path. The ixemul.library (it is version 40.4, 68020 noFPU) should be copied to
the LIBS: directory, if you don't have a newer one there.
For using the shell script PhotoMap you have to assign JPEGTMP: to a directory
on your hard disk with enough free space. (e.g. assign JPEGTMP: HD:T) This is
also needed to create map-files for the program jpegAGA.
The best solution is to add this command to the user-startup file.
The shell script PhotoMap should be copied to the S: directory. It assumes that
the programs PhotoCDAGA and ppm2AGA are available in the shell's search path and
the JPEGTMP: directory exists. You may also need to set the MAPDIR environment
variable, see later.
Invoking PhotoCDAGA:
********************
PhotoCDAGA PhotoCD-file [ppm-file] options
PhotoCD-file
************
This should be a file in the PhotoCD format. (No overview files!)
(e.g. cd:PHOTO_CD/IMAGES/IMG0001.PCD)
If the format is wrong you will see garbage on the screen.
Note: Some pictures don't contain all resolutions. (If the file length is much
shorter than 3MB.) It is possible that you will not be able to use the -x
option for Base resolution in this case.
ppm-file
********
This is the name of the ppm/pgm file that should be created. (Only needed when
the -ppm or -pgm option is specified.)
Options
*******
-b Name
When using this option you must specify a name. This is needed to prevent
PhotoCDAGA from using the same map-file for different pictures if you have
more than one PhotoCD's. (see later) When creating map-files with the shell
script you have to set the same option.
This is only useful for color display.
-x
Use the overskip mode, this improves the color quality. If you are using the
Base resolution decoding will take much longer and will use much more
memory. (6MB is the absolute minimum, you have to boot with no Startup-
Sequence in that case.)
This option is not applicable for grayscale display/conversion.
-s
Make the picture sharper. Using this with a blurred picture it allows you to
detect more details in it.
-c
The program tries to cut off the black frame that sometimes appears at the
image borders.
-n
Don't rotate the picture. Normally PhotoCDAGA tries to find out the correct
orientation (portrait or landscape) and rotates the picture accordingly.
-r
Rotate the picture clockwise for portrait format.
-l
Rotate the picture counter-clockwise for portrait format.
-h
Flip the image horizontally.
-m
Write messages about the phase of decoding.
-c-
Darken the image.
-c+
Brighten the image.
-pgm
Create a pgm file. (8bit-grayscale) You have to specify a filename as
second option.
-ppm
Create a ppm file. (24bit-color) You have to specify a filename as second
option.
-gray
Show picture in grayscale mode.
-vga
Use the VGA (multiscan) screen mode for display.
-1
Use the Base/16 resolution. (128x192)
-2
Use the Base/4 resolution. (256x348)
-3
Use the Base resolution. (512x768) (default)
You can stop decoding by pressing CTRL-C. If the screen is already opened press
the right mouse button to stop. The screen has invisible but full functional
drag bar and depth gadget. It has also the autoscroll feature.
If you want to create a normal IFF-ILBM file you have to create a ppm-file
first and use the program ppm2AGA to convert. See the corresponding documen-
tation for more.
Creating the map-files
**********************
These files are needed for showing pictures with best possible quality.
Normally, they are created by the shell-script PhotoMap. You don't have to
care about the details.
Usage:
PhotoMap PhotoCD-file [-b BaseName]
After succesfull completion a map-file with the correct name will be created.
(On PC-filesystems too) You can process several pictures with a single invo-
cation. The command
SPat PhotoMap cd:PHOTO_CD/IMAGES/#?.PCD
will create, for example, a map-file for all pictures on a Photo-CD.
If it is not possible to store the map-file at the same location as the picture
itself (this is true for all CD-ROM's) then it will be stored in the directory
pointed to by the environment variable MAPDIR. PhotoCDAGA will then also try to
find the map-file in that place. You can set the environment variable e.g. with
the command:
setenv MAPDIR HD:tempdir
If you reset your machine the variable will get lost. To prevent this you can
use the command:
copy ENV:MAPDIR ENVARC:
NOTE: Don't use the same map-file for different pictures, this will make the
quality worse. If you have more than one Photo-CD you should use the -b option
and specify a different base name for each CD. You must use the same option
with the shell script and PhotoCDAGA itself.
If you have for example a PhotoCD with pictures from Australia then you can
create the map-files with the command:
SPat PhotoMap cd:PHOTO_CD/IMAGES/#?.PCD -b Australia
(Of course, the environment variable MAPDIR also must be set.)
Then you can look at the pictures e.g. with the command:
PhotoCDAGA cd:PHOTO_CD/IMAGES/IMG0030.PCD -c -vga -b Australia
(If you have enough memory you can also use the -x option.)
If you have any comments/suggestions/bug reports then please contact me. Don't
forget to mention your configuration for bug reports. (look below for an
example)
Tested configuration: (mine)
Amiga 4000/030, OS 3.0, 2MB Chip, 4MB Fast
Processor: 68EC030/25MHz, Coprocessor: 68882/32MHz
CD-ROM drive: Mitsumi FX 001 D
Controller: Tandem CD+IDE
Filesystem: TandemCacheCDFS
History
*******
1.0 - 20-November-1994
- first public release
Announcement
************
The actual version of this program does not offer very much. My spare time
is very limited because I am now studying Electrical Engineering at the Uni-
versity Stuttgart. Therefore I am searching for other developers to cooperate
with me and beta-testers for testing purposes. If you want to join in then
please contact me.
All messages/gifts/etc. should be sent to the following addresses:
electronic mail: normal mail:
**************** ************
Guenther@studbox.uni-stuttgart.de Günther Röhrich
(Internet EMAIL) Lerchenbergstr. 4
73733 Esslingen
Germany
If you don't get an answer to a EMAIL within 3 weeks then try it again
with normal mail. (Normally I answer EMAIL's within 4 days. Only when
I'm on holidays it may be different.)
Here comes the address of Hadmut Danisch:
Hadmut Danisch (danisch@ira.uka.de , will change in future)
E.I.S.S. (European Institute for System Security)
Universitaet Karlsruhe
Am Fasanengarten 5
D-76128 Karlsruhe
Germany
FAX: +49 721 696893
Tel./FAX privat: +49 721 607306 (will change in future)